package com.allo2o.common.mapper;

import com.allo2o.common.domain.MerchantCommodityDO;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface MerchantCommodityDOMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(MerchantCommodityDO record);

    int insertSelective(MerchantCommodityDO record);

    MerchantCommodityDO selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(MerchantCommodityDO record);

    int updateByPrimaryKey(MerchantCommodityDO record);

    List<MerchantCommodityDO> selectByMerchantId(String mobile);

    int updateCatNameByMerchantId(@Param("merchantId") String merchantId, @Param("newCatName") String newCatname, @Param("catName") String catName);
}